from app.libs.redprint import Redprint
from app.models.banner import Banner
from flask import jsonify

api = Redprint('wx_home')


@api.route("/banner", methods=['POST'])
def banner():
    banners = Banner.query.filter_by().all()
    return jsonify(banners)


